Skip to content

Comment on Bog – small, strongly typed, embeddable languageparent

Comments

Well I can't test it in bog, but TypeScript allows exactly this syntax and it will give you an error like "Property ptint does not exist on type ..."

One would imagine that

  let {print} = import "std.io"
is equivalent to
  let print = (import "std.io").print
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.