You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kredati opened this issue
Dec 14, 2023
· 1 comment
Assignees
Labels
enhancementNew feature or requestnextTo do in a minuteproposalA proposal to change the languagesemanticsLanguage behavioursyntaxSyntactic formsuxRelated to user experience
A module form could be interesting. It describes a namespace, but instead of an explicit associative data structure (as the ns form is currently), it would be followed by a block. It would then bundle up all the bindings in this block into an equivalent namespace.
The following would then be equivalent:
& current `ns` strategy:
let foo = ...
let bar = ...
let baz = ...
ns Foobar { foo, bar, baz }
& new `module` strategy:
module Foobar {
let foo = ...
let bar = ...
let baz = ...
}
This is not quite pure sugar: it relies on the plumbing of Ludus being able to do something with the context of the scope. But I think this is quite ergonomic.
Is module the right name for this?
Is ns actually the name for this?
Is the old ns strategy the right one now that we don't have structs?
The text was updated successfully, but these errors were encountered:
enhancementNew feature or requestnextTo do in a minuteproposalA proposal to change the languagesemanticsLanguage behavioursyntaxSyntactic formsuxRelated to user experience
A
module
form could be interesting. It describes a namespace, but instead of an explicit associative data structure (as thens
form is currently), it would be followed by a block. It would then bundle up all the bindings in this block into an equivalent namespace.The following would then be equivalent:
This is not quite pure sugar: it relies on the plumbing of Ludus being able to do something with the context of the scope. But I think this is quite ergonomic.
module
the right name for this?ns
actually the name for this?ns
strategy the right one now that we don't have structs?The text was updated successfully, but these errors were encountered: