Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sanderjd
on Nov 4, 2018
|
parent
|
context
|
favorite
| on:
Why I love Common Lisp and hate Java (2012)
So going back to the original commenter's points: how does Swift handle top-level code? Where is it legal for me to write print("Hello, World")?
saagarjha
on Nov 4, 2018
|
next
[–]
Anywhere outside of things like a class or structure definition, if you have a single-file project. In a multi-file project, only in main.swift.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: