Standard Library

chrisethchriseth Member Posts: 170 ✭✭✭
With reusable library code on the doorstep (more on that probably next week), I have started to create something that will eventually evolve into a standard library here:
It would be great to get some pull requests from our awesome community!


  • acrosacros Member Posts: 63 ✭✭
    Great, I was just looking for something like that :) I'll try and keep adding to it!

    One thing I'd like to add is `map()`, `flatMap()`, `filter()` and `reduce()` monads. Without turning Solidity into an FP language, I feel like these have become ubiquitous enough that they deserve to be included in a std lib, if not natively!
  • chrisethchriseth Member Posts: 170 ✭✭✭
    Oh, yes, we certainly need them! What is currently planned to achieve this goal:
    - template libraries
    - inline-declared functions (lambda functions)
    - closures, if possible
    - non-ABI types for library function arguments
    - functions as function arguments - but this will only work well for internal function calls
  • acrosacros Member Posts: 63 ✭✭
    You mean natively?? That would be pretty awesome... We *need* functions as a first-class citizen, let's not reproduce Java's mistakes!!
Sign In or Register to comment.