You are viewing a single thread.
View all comments
4 points

Is that python? If it’s, thank you, finally learned how to format text in a way that can be read on the script and in the execution.

permalink
report
reply
9 points

As the other comments have already said it’s not Python. Not sure what you mean with text formatting, do you mean that it’s multiple strings that are concatenated using +? You don’t need the + in Python, you can do

some_function(
    "part one of really long string"
    " part two of really long string"
)

Which is identical to

some_function("part one of really long string part two of really long string")
permalink
report
parent
reply
8 points

It isn’t, there are curly braces. It’s TypeScript.

permalink
report
parent
reply
1 point

Python also have curly bracers, om dictionaries.

permalink
report
parent
reply
5 points

Yes, but not for indentation (which is obviously what I meant)

permalink
report
parent
reply
3 points

Looks like TypeScript to me

permalink
report
parent
reply
2 points

No, but you can do the same in python

permalink
report
parent
reply
1 point

I was thinking on trying it. Need to see how it works with f formatting.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.7K

    Monthly active users

  • 811

    Posts

  • 13K

    Comments