Live data from Hacker News

THT v0.2.0 – a language that compiles to PHP

tht.help

11–13 of 13 posts

Re: THT v0.2.0 – a language that compiles to PHP

#11
post #10

I'm curious as to the design decisions behind the THTML[1]. Some of them, like the double or triple arrow tags seem like they are going to be confusing in practice. It becomes a constant question or intent or typo (at least in my mind). [0] https://tht.help/reference/thtml

Double-arrows let you signify that the tag is different with no extra effort because it's just an extra tap where your finger is already positioned.

It also has a right directionality to imply that it has scope until the end of the line.

Triple-arrow is the same idea, but uses the convention that triple-characters are common for delineating multi-line blocks.

Re: THT v0.2.0 – a language that compiles to PHP

#12
post #11
post #10

I'm curious as to the design decisions behind the THTML[1]. Some of them, like the double or triple arrow tags seem like they are going to be confusing in practice. It becomes a constant question or intent or typo (at least in my mind). [0] https://tht.help/reference/thtml

Double-arrows let you signify that the tag is different with no extra effort because it's just an extra tap where your finger is already positioned. It also has a right directionality to imply that it has scope until the end of the line. Triple-arrow is the same idea, but uses the convention that triple-characters are common for delineating multi-line blocks.

I get that it is convenient but it just seems like the syntax is prone to unexpected behavior from typos.

Re: THT v0.2.0 – a language that compiles to PHP

#13
post #9
post #8

While I can appreciate the good intentions of the developers, for me, this just screams waste of effort. I can't see a way that this will ever gain widespread acceptance. Can this even leverage the enormous PHP ecosystem? ie, composer, https://github.com/guzzle/guzzle , https://github.com/thephpleague/flysystem , etc. From what I understand this targets developers who: A) Come from a javascript background and B) Want…

Hi, thanks for your feedback. I can understand that it might not seem useful to you if you already have a stack you've invested in, or it just doesn't fit the kind of projects you are working on. But I just wanted to respond to a few things. :) > A) Come from a javascript background It targets all web developers, who are all generally familiar with JavaScript. It aims to be another tool, not a total replacement for a…

Thanks for the response.. Wish you nothing but the best...

My comment about complexity in the transpiler is more about debugging and what do you do when you can't figure out where your bug is, because it's in the transpiler. ;)

And I think your last sentence regarding composer makes it clearer whom this is aimed at.

Again, best of luck..

Post reply on HN