crystal v0.7.5 Release Notes
Release Date: 2015-07-30 // over 8 years ago-
- (breaking change)
0
is not a prefix for octal numbers anymore. Use0o
- (breaking change) Renamed
MissingKey
toKeyError
- (breaking change) Renamed
IndexOutOfBounds
toIndexError
- ๐ Fixed all exception-handling related bugs.
- ๐ Allow nested and multiline ternary expressions (thanks @daviswahl)
- ๐ Allow assigning to
_
(underscore), give error when trying to read from it - Macros can now also receive the following nodes:
And
,Or
,Case
,RangeLiteral
andStringInterpolation
.And
andOr
haveleft
andright
methods. - โ Added
-e
option tohierarchy
command to filter types by a regex - โ Added
-v
as an alias of--version
- โ Added
-h
as an alias of--help
- โ Added
Array#transpose
(thanks @rhysd) - โ Added
Benchmark#ips
(thanks @will) - โ Added
Hash#merge(&block)
andHash#merge!(&block)
(thanks @yui-knk) - โ Added
Hash#invert
(thanks @yui-knk) - โ Added
Bool#^
(thanks @yui-knk) - Added
Enumerable#drop
,Enumerable#drop_while
andEnumerable#take_while
(thanks @PragTob) - โ Added
Enumerable#none?
(thanks @yui-knk) - โ Added
Set#subset?
,Set#superset?
andSet#intersects?
(thanks @yui-knk) - โ Added
Set#new(Enumerable)
(thanks @yui-knk) - โ Added
String#succ
(thanks @porras and @Exilor) - โ Added
Array#*
(thanks @porras) - โ Added
Char#===(Int)
andInt#===(Char)
(thanks @will) - โ Added
StringLiteral#camelcase
andStringLiteral#underscore
in macros - โ Added
Expressions#expressions
in macros - โ Added
Cast#obj
andCast#to
in macros - โ Added
ASTNode#class_name
in macros (thanks @yui-knk) - โ Added
Array#push
/Array#<<
andArray#unshift
in macros (thanks @ysbaddaden) - โ Added
Def#visibility
in macros (thanks @ysbaddaden) - โ Added
String#codepoints
andString#each_codepoint
(thanks @jhass) - ๐
Char#to_i(base)
now supports bases from 2 to 36 Set#|
now correctly accepts a set of a possible different type (thanks @yui-knk)- Flush
STDERR
on exit (thanks @jbbarth) HTTP::Client
methods accept an optional block, which will yield anHTTP::Response
with a non-nilbody_io
property to consume the response's IO- Document
URI
,UDPSocket
(thanks @davydovanton) - ๐ Improved
URI
class (thanks @will) - Define
$~
inString#gsub
andString#scan
- Define
$?
inProcess.run
- ๐ Lots of bug fixes and small improvements
- (breaking change)