# Code blocks and a possible syntax

**URL:** <https://discuss.python.org/t/code-blocks-and-a-possible-syntax/14673>\
**Category:** Ideas\
**Created:** [March 28, 2022, 11:24pm UTC](https://discuss.python.org/t/code-blocks-and-a-possible-syntax/14673 "2022-03-28T23:24:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EpicWink](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/epicwink/32/17968_2.png) [@EpicWink](https://discuss.python.org/u/EpicWink)\
**Post date:** [March 29, 2022, 3:43am UTC](https://discuss.python.org/t/code-blocks-and-a-possible-syntax/14673/2 "2022-03-29T03:43:18Z")

</div>

What’s the disadvantage of using a function? To a regular user, this will look like just a function without the `def`. You can always modify the behaviour of a function by writing if-statements in the function (granted, you can’t do this after the fact, but I would say that’s a benefit for code readability)

* * *

I’m also going to preempt the discussion of inserting code directly into the AST by readying the inline-function discussions: [Inline Python functions and methods - Ideas - Discussions on Python.org](https://discuss.python.org/t/inline-python-functions-and-methods/12412) and [Adding inline in Python - Ideas - Discussions on Python.org](https://discuss.python.org/t/adding-inline-in-python/13532)

---

_[View the full topic](https://discuss.python.org/t/code-blocks-and-a-possible-syntax/14673)._
