As of August, 28 2016 the behavior seems to be consistent with local files, i.e, open() fails if the url cann't be open. However a runtime error takes place if the url is "malformed. For example, trying open("unicon.org") causes this:
Run-time error 1201
File ret.icn; Line 3
malformed URL
offending value: "unicon.org"
Traceback:
main(list_1 = ["unicon.org"])
open("unicon.org","m") from line 3 in ret.icn
Should we make that a failure?
Should unicon default to prefix the url with "http://" if it doesn't have one already?
--Jafar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As of August, 28 2016 the behavior seems to be consistent with local files, i.e, open() fails if the url cann't be open. However a runtime error takes place if the url is "malformed. For example, trying open("unicon.org") causes this:
Run-time error 1201
File ret.icn; Line 3
malformed URL
offending value: "unicon.org"
Traceback:
main(list_1 = ["unicon.org"])
open("unicon.org","m") from line 3 in ret.icn
Should we make that a failure?
Should unicon default to prefix the url with "http://" if it doesn't have one already?
--Jafar
http:// or https:// ? Or try the latter first and then the former?