Pluto
Pluto copied to clipboard
0.10.0
- Pluto now automatically detects if non-compatible keywords should be enabled or disabled based on usage
- This is overwritten by the scripter using
pluto_useor the integrator or user managing compatibility mode, so it only applies when absolutely zero configuration has been applied. This is a significant improvement for lua source code compatibility.
- This is overwritten by the scripter using
$definestatement now requires an assignmentifexpressions are now no longer deprecated but require anend(e.g.print(if a then b else c end))- Added private methods to classes
- Private fields (and methods) can be declared and accessed anywhere inside the class now. Previously, you needed to define a private field before you accessed it. This is no longer a restriction.
- Added chained comparisons (e.g.
1 <= i <= #t)
Standard library:
- Added regex library
- Added ffi library
- Added assert.contains
- Added bigint.eq, bigint.lt, & bigint.le
- Added crypto.exportkey & crypto.importkey
- Added crypto.decompress
- Added table.findindex, table.back, table.keys, table.modget, table.modset, table.slice, table.countvalues, & table.chunk
- Added socket.getpeer, socket.peek, socket.getside, socket.istls, & socket.isopen
- Added optional limit argument to string.split
- socket.starttls can now be used on server sockets
- Optimized json.encode with
__order