# Can we get rid of synfig::String?

**URL:** <https://forums.synfig.org/t/can-we-get-rid-of-synfig-string/10034>\
**Category:** Coding synfig\
**Created:** [July 29, 2019, 1:17am UTC](https://forums.synfig.org/t/can-we-get-rid-of-synfig-string/10034 "2019-07-29T01:17:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodolforg](https://forums.synfig.org/letter_avatar_proxy/v4/letter/r/c68b51/32.png) [@rodolforg](https://forums.synfig.org/u/rodolforg)\
**Post date:** [July 29, 2019, 1:17am UTC](https://forums.synfig.org/t/can-we-get-rid-of-synfig-string/10034/1 "2019-07-29T01:17:44Z")

</div>

Since 16b3beced2 (darco 2005-03-24 21:02:18 +0000), `synfig::String` is just a (strange/fake) wrap for `std::string`.

It is defined here:  
synfig-core/trunk/src/sinfg/string.h  
synfig-core/trunk/src/sinfg/string\_decl.h

```auto
namespace std
{
template<class _CharT> struct char_traits;
template<> struct char_traits<char>;
template<typename _Alloc> class allocator;
template<typename _CharT, typename _Traits,typename _Alloc>class basic_string;
typedef basic_string<char,char_traits<char>,allocator<char> > string;

}; // END of namespace std

namespace synfig
{

/*!	\typedef String
**	\todo writeme
*/
typedef std::string String;

}; // END of namespace synfig

```

I think cleaning the code up is a good action to improve code readability and quality (besides the missing unit-test system). It would help to ease creation of language bindings for a possible script-able plugin system.

---

<div class="post-metadata">

**Author:** ![rodolforg](https://forums.synfig.org/letter_avatar_proxy/v4/letter/r/c68b51/32.png) [@rodolforg](https://forums.synfig.org/u/rodolforg)\
**Post date:** [August 9, 2019, 10:18pm UTC](https://forums.synfig.org/t/can-we-get-rid-of-synfig-string/10034/2 "2019-08-09T22:18:24Z")

</div>

Any opinion @KonstantinDmitriev @blackwarthog @ice0 @BobSynfig  
?

---

<div class="post-metadata">

**Author:** ![rodolforg](https://forums.synfig.org/letter_avatar_proxy/v4/letter/r/c68b51/32.png) [@rodolforg](https://forums.synfig.org/u/rodolforg)\
**Post date:** [April 10, 2020, 6:39pm UTC](https://forums.synfig.org/t/can-we-get-rid-of-synfig-string/10034/3 "2020-04-10T18:39:44Z")

</div>

I really want to get rid of this fake class 🙂

```auto
namespace synfig
{

/*!	\typedef String
**	\todo writeme
*/
typedef std::string String;

}; // END of namespace synfig

```
