POV-Ray : Newsgroups : povray.pov4.discussion.general : Curly braces replaced by indentations but only as an option ? : Re: Curly braces replaced by indentations but only as an option ? Server Time
1 Apr 2025 17:18:58 EDT (-0400)
  Re: Curly braces replaced by indentations but only as an option ?  
From: Ilya Razmanov
Date: 18 Mar 2025 05:00:33
Message: <67d93631$1@news.povray.org>
On 18.03.2025 11:01, Mr wrote:
> I'm sure more expert people in various languages will be able to teach me
> something important from what is probably a naive question :  What if in POV 4
> we had the possibility to use spaces or tabs as a synonym to what curly braces
> currently do, but we could still use those braces themselves ?
> 
> That way new comers would feel at first glance that the language is as easy to
> learn as Python, and would rapidly understand as they do in Python, that what
> matters is that they do know what scope they're in.

...and those newcomers will quickly find themselves producing mixed 
syntaxis, then trying to understand what the heck is this.

And, frankly, I don't see anything good about Python identation. To me 
it only takes more screen space than necessary, produce weird linewraps 
on display, and so on. I believe everything one need to control brackets 
and braces of all kinds it syntax highlight, and, ideally, a linter. 
Well, we already have a POV extension for VSCode, it's not perfect but I 
think it's a way to go, it would be definitely better than spending time 
for creating new POV editor. So we may get syntax highlight and stuff 
this way. What as to linter and stuff like that, that's a different 
story and more complicated one.

-- 
Ilyich the Toad
https://dnyarri.github.io/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.