Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Luon doesn't directly support tables, but instead supports records, arrays and hashmaps (which internally use tables). Since it's statically typed you can only store nil to a field or element if it is of a structured type.


What's a structured type? Something that has fields or elements?


Records, arrays and hashmaps are structured types; in contrast to original Oberon, Luon has no pointer type, but reference semantics instead.


So Luon has reference types and value types, and reference types are always nullable?


Yes, but value types are only basic types. Structured types only have reference semantics and are nil by default.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: