gavr123456789 / Niva

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

Public\Private Design #160

Open gavr123456789 opened 8 months ago

gavr123456789 commented 8 months ago
Person sas = []
Project privateDeclarations
Person sus = []

sas is public sus is private

gavr123456789 commented 8 months ago

Good idea, kinda C++, but also need syntax for making single type field private

type Person private name: String
gavr123456789 commented 7 months ago

Export

If something is exporting, than all other is private

type Sas

Int sas = 1 echo
Int ses = 1 echo
Int sos = 1 echo

Project export: {Int.sas, Int.ses, Sas} // need syntax for method ptrs

sos is private here