Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mjmas
4 months ago
|
parent
|
context
|
favorite
| on:
The Temporal Dead Zone, or why the TypeScript code...
It would work just like Lua then and require manually hoisting one of the declarations:
local b local function a() return b() end b = function() return a() end
(Lua's named function statements are just syntatic sugar. For example `local function a()` is equivalent to `local a; a = function()`.)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: