Aditya Bhargava
Aditya Bhargava
Hey all, I don't use Ruby much these days, and so I haven't been spending much time on this project. I am hoping there is someone who would be willing...
Output: ``` contracts.ruby (adit/215) $ cat test.rb require "contracts" include Contracts Contract Num => Num def incr x "Sdf" end incr(23) contracts.ruby (adit/215) $ ruby test.rb /Users/abhargava/contracts.ruby/lib/contracts.rb:45:in `block in ':...
``` ruby Item = Struct.new(:name, :weight, :value) ``` How to specify type constraints on these attributes? Can the contracts library help with this?
Take this function for example: ``` ruby Contract Num, Num => ArrayOf[ArrayOf[nil]] def twod_array(w, h) ... end ``` This function returns a 2d array of the given width and height....
Example of breakage: http://egonschiele.github.io/contracts.ruby I think Pygments updated it's css tags, and the modernist stylesheet hasn't been updated to account for this. Here's the stylesheet used on the example page:...
What are the plans for documenting this library? It's not easy to grok by just reading through the comments alone. Following something like [this guide](http://llvm.org/docs/tutorial/OCamlLangImpl3.html), it's hard for me to...
Allow the user to make a list of pathnames to filter on (simple substring match, not regex). The results get filtered using through this. This functionality could also be used...
Tested/linted/prettier'd. The site gave me an error message when I tried to sign the CLA, but I may have already signed it. ## Summary In strict mode, `useInsertionEffect` does not...