Skip to content

Scale Version 24.0

Choose a tag to compare

@StonkDragon StonkDragon released this 18 Feb 15:29
c23e0f6

Added

  • await and async
    • A function can be marked as async to indicate that it is an asynchronous function
    • Asynchronous functions are always called asynchronously
    • To wait for an asynchronous function to finish, use the await keyword:
      • myAsyncFunction await
    • Asynchronous functions have a return type of async<T> where T is the actual return type of the function
    • awaiting an asynchronous function returns the value of the function or nothing if the function returns none
  • float32 type
    • The float32 type acts exactly like a float in C and C++
  • Global Variable initializer expressions

Changes

  • Passing a struct by value now uses @ for the type instead of *
    • For now * is still recognized, but this will be removed in a future version
  • On install, the standard library in Scale.framework will now be compiled into a dynamic library. This speeds up compile times immensely