artasparks / glift

Go Lightweight Frontend
MIT License
115 stars 33 forks source link

New path syntax: 0x12 #146

Closed artasparks closed 8 years ago

artasparks commented 8 years ago

Given that Glift 1.1 will support Game Figures, we need better path syntax. Here's the idea

0x5.1x2.

This is equivalent to 0.0.0.0.0.1.1. This makes it much easier to collapse path fragments. Another possibility is flipping the syntax and doing 5x0.1x2, but I think this is more confusing.

As a side note, I think I should move away from the dash syntax. E.g., 0.0.0-32 since it's a bit confusing.

artasparks commented 8 years ago

Note: I changed this to 0:12 to avoid confusion with hex.