Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Rochus
on Dec 14, 2024
|
parent
|
context
|
favorite
| on:
The Luon programming language
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.
akkartik
on Dec 14, 2024
[–]
What's a structured type? Something that has fields or elements?
Rochus
on Dec 14, 2024
|
parent
[–]
Records, arrays and hashmaps are structured types; in contrast to original Oberon, Luon has no pointer type, but reference semantics instead.
masklinn
on Dec 14, 2024
|
root
|
parent
[–]
So Luon has reference types and value types, and reference types are always nullable?
Rochus
on Dec 14, 2024
|
root
|
parent
[–]
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: