Commit Graph

13 Commits

Author SHA1 Message Date
Alex Tkachman 53bba59a4f dbl -> toDouble 2012-02-22 13:14:41 +02:00
Andrey Breslav bff62484b1 KT-1306123.lng or 123.sht is not good name 2012-02-20 21:42:13 +04:00
James Strachan ac276e08ba avoid double close and added TODO about supporting http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html#suppressed-exceptions 2012-01-05 09:10:11 +00:00
James Strachan 79049ca2e2 avoid double close and added TODO about supporting http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html#suppressed-exceptions 2012-01-04 16:50:25 +00:00
James Strachan 302254f531 enabled test case for auto-closing helper method on Closable.foreach 2012-01-04 11:49:34 +00:00
James Strachan 2274ab48ab added a useLines() methods on Reader to be able to use a line iterator (Iterator<String>) to process the file on a per line bases with the block in full control over how much of the file to process; though hit a couple of type inference issues 2011-12-22 09:36:18 +00:00
James Strachan 71b1aee908 added a little test case showing how we can iterate through lines in a file; also started adding helper methods to the standard kotlin Iterator; though probably need to rename the to* methods iterators, maybe to collect* as Stepan suggested. Could maybe use some extension function syntax making it easy to add helper methods consistently to Array, Iterator, Iterable, java.util.Iterator, java.util.Iterable at the same time, we're very inconsistent currently :) 2011-12-22 08:59:43 +00:00
James Strachan 894c84190a migrated most of the test cases over to the new -> syntax for functions; still can't compile or run the tests yet though :(, needs more work... 2011-12-21 16:26:37 +00:00
James Strachan aaf18bdd86 Merge branch 'master' of git+ssh://git.labs.intellij.net/jet 2011-12-21 10:10:12 +00:00
James Strachan 232d161e99 added a little helper method for processing a closeable object which then makes sure the resource is closed (like the try-with-resource extension in Java 7) 2011-12-21 10:09:55 +00:00
Andrey Breslav 6aad3b2662 GreatSyntacticShift: Codegen testdata fixed 2011-12-20 22:56:13 +04:00
Alex Tkachman 3419df7d0c a bit more methods (previously broke compilation) 2011-12-13 16:00:22 +02:00
Alex Tkachman ff055399a7 house keeping 2011-12-13 15:45:18 +02:00