So you think you wanna be a web developer... Fork this, update your copy with answers. They don't need to be precise - pseudo-code is fine in most cases. Some questions don't have correct answers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module A | |
| refine(A) {} | |
| using A | |
| end | |
| #a.rb:3: stack level too deep (SystemStackError) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // complains that you can't have the inner class w/ same name | |
| public class Blargh { | |
| public static class Blargh{} | |
| } |
Looking at this https://github.com/mirah/mirah/compare/2875d54b68...6fa6472b90
What's a binding_type? It is the "Type" of the binding generated to mush shared state into a closure.
Here's something interesting https://github.com/mirah/mirah/blob/6fa6472b90cbf9b7345dfbae65b2648d5c787ace/src/org/mirah/typer/closures.mirah#L124
def build_constructor(enclosing_body:NodeList, klass:ClassDefinition, parent_scope:Scope):void- varargs transform / code generation I've got code for matching varargs methods, but the calls to them blow up because the args aren't right.
- fixing tests on 1.6.7
- fixing tests on 1.7.0.preview2
- issue triage. There's stuff that only applies to 0-0-stable, which isn't going to be used going forward.
other thoughts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Core Tests | |
| ======================== | |
| 37 tests, 89 assertions, 1 failures, 0 errors | |
| 1) Failure: | |
| test_rescue_w_different_type_raises_inference_error_when_expression(TyperTest) | |
| [/<...>/mirah/test/core/typer_test.rb:253:in `test_rescue_w_different_type_raises_inference_error_when_expression' | |
| org/jruby/RubyKernel.java:2076:in `send' | |
| > maybe in `src/org/mirah/typer/typer.mirah. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: core/src/main/scala/kafka/consumer/TopicCount.scala | |
| =================================================================== | |
| --- core/src/main/scala/kafka/consumer/TopicCount.scala (revision 1355144) | |
| +++ core/src/main/scala/kafka/consumer/TopicCount.scala (working copy) | |
| @@ -18,12 +18,37 @@ | |
| package kafka.consumer | |
| import scala.collection._ | |
| -import scala.util.parsing.json.JSON | |
| +import scala.util.parsing.json._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test/core/macros_test.rb | |
| MacrosTest | |
| ERROR (0:00:00.437) test_macro_helper | |
| argument type mismatch | |
| @ sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
| sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | |
| sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | |
| java.lang.reflect.Constructor.newInstance(Constructor.java:513) | |
| sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
| sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) |