4

I've recently launched a node js package fast-freeze. It makes an object read only by converting it into series of functions. Though it is faster but looks ugly to use. Eg giveMe("server")("port").

Any suggestion to make it less ugly?

Comments
  • 0
    @theKarlisK ??
  • 0
    How would it look like in coffee script? (I've never worked with coffee script)

    ` giveMe server port`
  • 0
    How about converting it to get only properties ? No calls and stringly typed props required. Object does not change its interface.
Add Comment