Hassium Version 1.3.0
New Features:
Inline Tuples
The syntax is tuple (value, value, .......);
tuple myTuple ("abc", 123, "def");
is equivalent to :
myTuple = tuple ("abc", 123, "def");
HttpUtility class in Net Module
HttpUtility.htmlAttributesEncode(str);
HttpUtility.htmlDecode(str);
HttpUtility.htmlEncode(str);
HttpUtility.javaScriptStringEncode(str);
HttpUtility.urlDecode(str);
HttpUtility.urlEncode(str);
HttpUtility.addUriProtocol(str);
Added a function to the Information class to get Environment variables
println(Information.getEnvironmentVariable("PATH"));
CGI Class for server-side development
use net;
println(cgi.post["field_name"]);
if(cgi.request.method == "get")
println(cgi.server.ident);
sizeOf()
, nameOf()
println(sizeOf(test));
println(nameOf(parameter));
In operator
if(currentItem in mainArray) { }
case
switch (price)
{
case is < 0:
println("ERROR!");
case 0 to 15:
shipping = 2.0;
case 16 to 59:
shipping = 5.87;
case is > 59:
shipping = 12.50;
}
Heredoc strings
println("This is normal code");
>>>
This is plain text!
<<<
println("This is normal code again");
threadRun()
SMTP classes in Net module for Mailing.
Fixes:
Array bug
Dictionary bug