# Pythonify qlang

**URL:** <https://quantlab.discourse.group/t/pythonify-qlang/102>\
**Category:** Qlang Language\
**Created:** [November 29, 2024, 11:04am UTC](https://quantlab.discourse.group/t/pythonify-qlang/102 "2024-11-29T11:04:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![casperfdr](https://avatars.discourse-cdn.com/v4/letter/c/ed655f/32.png) [@casperfdr](https://quantlab.discourse.group/u/casperfdr)\
**Post date:** [November 29, 2024, 11:04am UTC](https://quantlab.discourse.group/t/pythonify-qlang/102/1 "2024-11-29T11:04:27Z")

</div>

An unknown feature in Qlang is that you can define operators, and the thing I miss most about python is the ability to add strings together.

With the following code you will be able to add strings together in qlang as well.

```auto
string operator + (string str1, string str2)
{
    return strcat(str1, str2);
}

```

---

<div class="post-metadata">

**Author:** ![QuantBob](https://yyz1.discourse-cdn.com/flex003/user_avatar/quantlab.discourse.group/quantbob/32/9_2.png) [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Post date:** [November 29, 2024, 1:43pm UTC](https://quantlab.discourse.group/t/pythonify-qlang/102/2 "2024-11-29T13:43:41Z")

</div>

I thought we were getting away from Python style? Next we put “auto” in front of all functions with returns, to mimic non-typed?  
😉

---

<div class="post-metadata">

**Author:** ![QuantlabAdmin](https://yyz1.discourse-cdn.com/flex003/user_avatar/quantlab.discourse.group/quantlabadmin/32/10_2.png) [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Post date:** [December 6, 2024, 11:23pm UTC](https://quantlab.discourse.group/t/pythonify-qlang/102/3 "2024-12-06T23:23:21Z")

</div>

Dear followers,  
The compiler hears praise. Starting from the Quantlab version 3.1.4134, the “+” operator will be recognized as a valid way to concatenate strings. It has even been optimized to be fast. Enjoy.

ps. original release note:  
“qlab: operator+(string, string) (the cat’s out of the bag).”  
ds.

---

<div class="post-metadata">

**Author:** ![QSEK1](https://avatars.discourse-cdn.com/v4/letter/q/22d042/32.png) [@QSEK1](https://quantlab.discourse.group/u/QSEK1)\
**Post date:** [March 17, 2025, 12:47pm UTC](https://quantlab.discourse.group/t/pythonify-qlang/102/4 "2025-03-17T12:47:56Z")

</div>

That seems like a good addition.

---

<div class="post-metadata">

**Author:** ![QuantlabAdmin](https://yyz1.discourse-cdn.com/flex003/user_avatar/quantlab.discourse.group/quantlabadmin/32/10_2.png) [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Post date:** [March 18, 2025, 6:20am UTC](https://quantlab.discourse.group/t/pythonify-qlang/102/5 "2025-03-18T06:20:16Z")

</div>

Glad you approve! Welcome to the forum. Do not hesitate to post any questions or tips you might have.
