gavr123456789 / Niva

Smalltalk like programming language
https://gavr123456789.github.io/niva-site
41 stars 2 forks source link

Idea: Builders - add to scope #271

Closed gavr123456789 closed 3 months ago

gavr123456789 commented 3 months ago

allow builders add not only this, but many things

builder StringBuilder buildStr = [
x = 5
name = "Sara"
build scope: {x, name} 

]

buildStr [
  name echo
  x echo
]
gavr123456789 commented 3 months ago

this is kinda already done with adding fields of this to scope, so no needed