Pluto icon indicating copy to clipboard operation
Pluto copied to clipboard

0.10.0

Open well-in-that-case opened this issue 1 year ago • 0 comments

  • Pluto now automatically detects if non-compatible keywords should be enabled or disabled based on usage
    • This is overwritten by the scripter using pluto_use or 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.
  • $define statement now requires an assignment
  • if expressions are now no longer deprecated but require an end (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

well-in-that-case avatar Apr 08 '24 06:04 well-in-that-case