Releases: Princess-org/Princess
Releases · Princess-org/Princess
Princess 0.3.14
Changes:
- Make it possible to call functions without parens, ie.
print 10, 20, 30
is working now. - Destructors can now optionally return a boolean depending on if you want the default code to run or not. The default behavior is to run it.
Princess 0.3.13
Changes:
Backwards incompatible!
Changed weak_ref(T)
to weak &T
Princess 0.3.12
Changes:
- Now polymorphic functions get compiled into the module that uses them, this should make incremental compilation far easier while also fixing some weird side effects
- Weak references are safe now, they return null if the referenced object got collected
Princess 0.3.11
Fixed memory leak issues
Princess 0.3.10
Breaking changes ahead!
- Change struct initializer to
[]
- Removed the ability to initalize struct elements by index
- Change closure types to use the new tuple syntax for arguments and return types
- Change array access syntax to
arr(x)
andarr(x) = v
. This is done usingapply
andupdate
- Add tuples using the new initalizer syntax
let a: [int, double] = [10, 10.5]
- Tuples convert from and to arrays depending on if the elements are compatible with each other
- Multiple return types can also be defined using the tuple syntax in function definitions
- Add anonymous structs
Princess 0.3.9
Changes:
- Create doc comments
- Yield from
- Inline functions
- Progress bar for the compiler
This build now contains the bootstrap compiler version which is a completely standalone elf executable.
It needs to be placed inside the bin directory of the extracted tar file and can be used to bootstrap the compiler
on (hopefully) any distro.
Princess 0.3.8
Changes:
- Introduce implicit functions
- Allow destructors and constructors to be called at compile time
- New String types:
StringBuffer
,String
,Str
andStringSlice
- Arena allocator
Princess 0.3.7
Changes:
- Fix generators
- Allow interfaces to see generic functions
Princess 0.3.6
Changes:
- Fix generators
Princess 0.3.5
Changes:
- Mostly working incremental compilation, use
--no-incremental
to disable it - add from statement to re-export functions and variables