Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by M95D

3 months ago

To author:

In the "Material Definitions" example there are no { }. Why not? What's the difference? Is indentation significant?

1 comment

M95D

Reply

hgs3  3 months ago

Indention is not significant. The example was supposed to demonstrate how you might use individual directives for pseudo-grouping. The example was inspired by premake [1] which takes this approach, but in Lua.

[1] https://premake.github.io/docs/Your-First-Script

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities