Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Pricing

Guido van Rossum

๐Ÿ‘ค Person
1189 total appearances

Appearances Over Time

Podcast Appearances

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

If you look at C or Rust or C++, all those languages, Java, don't have a requirement of indentation, but except in extreme cases...

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

They're just as anal about having their code properly indented.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

they'd suggest the proper indentation for you.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

Like in C, you type a few words and then you type a curly brace, which is their notion of sort of begin an indented block.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

Then you hit return and then it automatically indents four or eight spaces depending on your style preferences or how your editor is configured.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

Absolutely, yeah.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

For a long time, I was actually convinced that the indentation was just better.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

Without context, I would still claim that indentation is better.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

It reduces clutter.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

However, as I started to say earlier, context is almost everything.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

And in the context of coding,

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

Most programmers are familiar with multiple languages, even if they're only good at one or two.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

And apart from Python and maybe Fortran, I don't know how that's written these days anymore, but all the other languages, Java, Rust, C, C++, JavaScript, TypeScript, Perl, are all using curly braces to sort of indicate blocks.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

And so Python is the odd one out.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

Because context is not the whole story.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

History, in a sense, provides more context.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

So for Python...

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

There is no chance that we can switch.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

Python is using curly braces for something else, dictionaries mostly.

Lex Fridman Podcast
#341 โ€“ Guido van Rossum: Python and the Future of Programming

We would get in trouble if we wanted to switch.